package com.lovo.psc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lovo.util.SnowIdUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author 刘英旭
 * @since 2022-07-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("psc_user")
public class UserBean extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "userPk_id", type = IdType.AUTO)
    private Integer userpkId;

    private String commoduser;

    private String pwd;
    @TableField("commodityNAME")
    private String name;

    private String number = String.valueOf(SnowIdUtils.uniqueLong()).substring(9);

    private String img;

    private String classes;

    private String state = "0";

    public UserBean() {
    }

    public UserBean(String commoduser, String pwd, String name, String img, String classes) {
        this.commoduser = commoduser;
        this.pwd = pwd;
        this.name = name;
        this.img = img;
        this.classes = classes;
    }
}
